package com.china08.yxyapi.entity.db.lessons;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 校本课程
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_lessons_school_catalog", catalog = "yxy_lessons")
public class YxyLessonsSchoolCatalog extends BaseEntity {

    @Column(nullable = false)
    private String name;

    /**
     * 分类级别 1--一级目录 2--二级目录
     */
    @Column(nullable = false)
    private Integer level;

    /**
     * 父级id, 当是一级目录是 pid为0,
     */
    @Column(nullable = false)
    private String pid;

    /** 排列序号 */
    @Column(name = "order_num", nullable = false, columnDefinition = "INT(11) DEFAULT 100")
    private Integer orderNum = 20;

    @Column
    private String schoolId;// 校本课程时, 对应的学校id

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

}
